	<?php
	$installed = '<span class="ok">Installed</span>';
	$rq_note = '<span class="err">Uninstalled</span><span class="note">This plugin is required. Please activate it.</span>';
	$op_note = '<span class="err0">Uninstalled</span><span class="note">Optional plugin but It is recommended to activate it.</span>';
	?>
	
	<div id="10" class="cptab">
	<h2>Theme Doctor</h2>
	<p>This is a unique tool which is developed by Deluxe Themes. This tool checks for required plugins and components for this theme to run properly. Use the Theme Doctor to discover any potential problems that may be preventing your theme to function properly.</p>
	<fieldset><legend>Required Components</legend>
	<label>Deluxe Themes Library</label><?php if (function_exists('dt_library')) : echo $installed; else : echo $rq_note; endif; ?>
	<div class="clear"></div>
	</fieldset>
	<fieldset><legend>Plugins</legend>
	<label>Navigation</label><?php if (function_exists('wp_pagenavi')) : echo $installed; else : echo $op_note; endif; ?>
	<div class="clear"></div>
	<label>Ratings</label><?php if (function_exists('the_ratings')) : echo $installed; else : echo $op_note; endif; ?>
	<div class="clear"></div>
	<label>Post Views</label><?php if (function_exists('the_views')) : echo $installed; else : echo $op_note; endif; ?>
	<div class="clear"></div>
	<label>Print</label><?php if (function_exists('wp_print')) : echo $installed; else : echo $op_note; endif; ?>
	<div class="clear"></div>
	</fieldset>
	<fieldset><legend>Server Requirements</legend>
	<label>Current PHP version</label>
	<?php if (version_compare(PHP_VERSION, '4.0.0', '>=')) : ?><span class="ok"><?php echo phpversion(); ?></span><?php else : ?><span class="err"><?php echo phpversion(); ?></span><span class="note">Please upgrade your PHP release!</span><?php endif; ?>
	<div class="clear"></div>
	<label>GD Support</label>
	<?php if (function_exists("gd_info")) : ?><span class="ok"><?php $gd = gd_info(); ?><?php $gd_info=gd_info(); $version=$gd_info['GD Version']; $version=preg_replace('%[^0-9\.]%', '', $version); echo $version; ?></span><?php else : ?><span class="err">Uninstalled</span><span class="note">Please install GD support</span><?php endif; ?>
	<div class="clear"></div>
	</fieldset>
	<p><span style="color:green"><b>Green:</b></span> No problem, no action is needed!</p>
	<p><span style="color:darkorange"><b>Orange:</b></span> Optional component is missing. You should activate it but the theme will continue to work without it.</p>
	<p><span style="color:red"><b>Red:</b></span> Critical problem. A required component is missing. Your theme may not work at all without it.</p>
	</div>